home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Games / Abalone 1.4.2 / src / Abalone.r < prev    next >
Encoding:
Text File  |  1995-09-21  |  15.1 KB  |  1,102 lines  |  [TEXT/MPS ]

  1. /* Resources which are (similar to) bitmaps reside in the Abalone.rsrc file,
  2.  * and don't have a corresponding Rez definition.
  3.  */
  4. include "Abalone.rsrc" not 'ckid'; /* insert 'bitmap'-like resources */
  5. #include "BalloonTypes.r"
  6. #include "SysTypes.r"
  7. #include "Types.r"
  8.  
  9. #include "Define.h"
  10. #include "Menu.h"
  11.  
  12.  
  13. type 'A•1e' as 'STR ';
  14. type 'mstr' as 'STR ';
  15.  
  16.  
  17. resource 'A•1e' (0)
  18. {
  19.     "Abalone for the Macintosh"
  20. };
  21.  
  22.  
  23. resource 'STR ' (-16396, purgeable)
  24. {
  25.     "Abalone"
  26. };
  27.  
  28.  
  29. resource 'vers' (1)
  30. {
  31.     0x1,
  32.     0x4,
  33.     final,
  34.     0x2,
  35.     verNetherlands,
  36.     "1.4.2",
  37.     "Version 1.4.2\n© 1993-1995 Peter Tax"
  38. };
  39.  
  40.  
  41. resource 'vers' (2)
  42. {
  43.     0x1,
  44.     0x4,
  45.     final,
  46.     0x2,
  47.     verNetherlands,
  48.     "1.4.2",
  49.     "The board game on your Macintosh"
  50. };
  51.  
  52.  
  53. resource 'BNDL' (128, purgeable)
  54. {
  55.     'A•1e',
  56.     0,
  57.     {
  58.         'FREF',
  59.         {
  60.             0, 128,
  61.             1, 129,
  62.             2, 130
  63.         },
  64.         'ICN#',
  65.         {
  66.             0, 128,
  67.             1, 129,
  68.             2, 130
  69.         }
  70.     }
  71. };
  72.  
  73.  
  74. resource 'FREF' (128, purgeable)
  75. {
  76.     'APPL',
  77.     0,
  78.     "Abalone Appl"
  79. };
  80.  
  81.  
  82. resource 'FREF' (129, purgeable)
  83. {
  84.     '••oo',
  85.     1,
  86.     "Abalone Pref"
  87. };
  88.  
  89.  
  90. resource 'FREF' (130, purgeable)
  91. {
  92.     '•••o',
  93.     2,
  94.     "Abalone Game"
  95. };
  96.  
  97.  
  98. resource 'SIZE' (-1)
  99. {
  100.     dontSaveScreen,
  101.     acceptSuspendResumeEvents,
  102.     enableOptionSwitch,
  103.     canBackground,
  104.     multiFinderAware,
  105.     backgroundAndForeground,
  106.     dontGetFrontClicks,
  107.     ignoreChildDiedEvents,
  108.     is32BitCompatible,
  109.     isHighLevelEventAware,
  110.     localAndRemoteHLEvents,
  111.     notStationeryAware,
  112.     dontUseTextEditServices,
  113.     reserved,
  114.     reserved,
  115.     reserved,
  116.     kPrefSize * 1024,
  117.     kMinSize * 1024    
  118. };
  119.  
  120.  
  121. resource 'MBAR' (rMenuBar, preload)
  122. {
  123.     {
  124.         APPLE_MENU;
  125.         FILE_MENU;
  126.         EDIT_MENU;
  127.         SETTINGS_MENU;
  128.         OPTION_MENU;
  129.         COLOR_MENU;
  130.         BACKGROUND_MENU;
  131.     };
  132. };
  133.  
  134.  
  135. resource  'MENU' (APPLE_MENU, preload)
  136. {
  137.     $$ID,
  138.     textMenuProc,
  139.     AllItems & ~MenuItem3,
  140.     enabled,
  141.     apple,
  142.     {
  143.         "About the game", noIcon, hierarchicalMenu, "\0D220", plain;
  144.         "About this program", noIcon, hierarchicalMenu, "\0D230", plain;
  145.         "-", noIcon, noKey, noMark, plain
  146.     }
  147. };
  148.  
  149.  
  150. resource    'STR#' (ABOUT_ABALONE_MENU, "about abalone", preload)
  151. {
  152.     {
  153.         "Rules of Abalone";
  154.         "Rules for moving";
  155.         "Rules for pushing";
  156.     }
  157. };
  158.  
  159.  
  160.  
  161. resource    'STR#' (ABOUT_PROGRAM_MENU, "about program", preload)
  162. {
  163.     {
  164.         "Copyright";
  165.         "Author";
  166.         "Making moves";
  167.         "Configuring";
  168.         "Network play";
  169.         "Strategies";
  170.         "Trademark";
  171.     }
  172. };
  173.  
  174.  
  175.  
  176. resource  'MENU' (FILE_MENU, preload)
  177. {
  178.     $$ID,
  179.     textMenuProc,
  180.     AllItems & ~MenuItem3 & ~MenuItem6,
  181.     enabled,
  182.     "File",
  183.     {
  184.         "New Game", 6, "N", noMark, plain;
  185.         "Open Game…", 15, "O", noMark, plain;
  186.         "-", noIcon, noKey, noMark, plain;
  187.         "Save Game", 16, "S", noMark, plain;
  188.         "Save Game as…", 16, noKey, noMark, plain;
  189.         "-", noIcon, noKey, noMark, plain;
  190.         "Quit Abalone", 17, "Q", noMark, plain
  191.     }
  192. };
  193.  
  194.  
  195. resource 'MENU' (EDIT_MENU, preload)
  196. {
  197.     $$ID,
  198.     textMenuProc,
  199.     MenuItem1,
  200.     enabled,
  201.     "Edit",
  202.      {
  203.         "Undo", 4, "Z", nomark, plain;
  204.         "-", noicon, nokey, nomark, plain;
  205.         "Cut", noicon, "X", nomark, plain;
  206.         "Copy", noicon, "C", nomark, plain;
  207.         "Paste", noicon, "V", nomark, plain;
  208.         "Clear", noicon, nokey, nomark, plain
  209.     }
  210. };
  211.  
  212.  
  213. resource 'MENU' (SETTINGS_MENU, preload)
  214. {
  215.     $$ID,
  216.     textMenuProc,
  217.     AllItems & ~MenuItem4,
  218.     enabled,
  219.     "Settings",
  220.      {
  221.         "First Player…", 1, "1", nomark, plain;
  222.         "Second Player…", 2, "2", nomark, plain;
  223.         "Third Player…", 3, "3", nomark, plain;
  224.         "-", noicon, nokey, nomark, plain;
  225.         "Two Players", 6, nokey, nomark, plain;
  226.         "Three Players", 7, nokey, nomark, plain;
  227.     }
  228. };
  229.  
  230.  
  231. resource 'MENU' (OPTION_MENU, preload)
  232. {
  233.     $$ID,
  234.     textMenuProc,
  235.     AllItems,
  236.     enabled,
  237.     "Options",
  238.     {
  239.         "Sound", 8, noKey, nomark, plain;
  240.         "Nicer Graphics", 9, noKey, nomark, plain;
  241.         "Show Notation", 10, noKey, nomark, plain;
  242.     }
  243. };
  244.  
  245.  
  246. resource 'MENU' (COLOR_MENU, preload)
  247. {
  248.     $$ID,
  249.     textMenuProc,
  250.     AllItems,
  251.     enabled,
  252.     "Color",
  253.     {
  254.         "First Player…", 1, nokey, nomark, plain;
  255.         "Second Player…", 2, nokey, nomark, plain;
  256.         "Third Player…", 3, nokey, nomark, plain;
  257.         "-", noIcon, noKey, noMark, plain;
  258.         "Background…", 5, nokey, nomark, plain
  259.     }
  260. };
  261.  
  262.  
  263. resource 'MENU' (BACKGROUND_MENU, preload)
  264. {
  265.     $$ID,
  266.     textMenuProc,
  267.     AllItems,
  268.     enabled,
  269.     "Background",
  270.     {
  271.         "Select Picture…", 14, "B", nomark, plain
  272.     }
  273. };
  274.  
  275.  
  276. resource 'MENU' (PLAYER_MENU, preload)
  277. {
  278.     $$ID,
  279.     textMenuProc,
  280.     allEnabled,
  281.     enabled,
  282.     "Player",
  283.     {
  284.         "Homo Sapiens", noIcon, noKey, noMark, plain;
  285.         "On the Network", noIcon, noKey, noMark, plain;
  286.         "This Macintosh", noIcon, noKey, noMark, plain;
  287.     }
  288. };
  289.  
  290.  
  291. resource 'MENU' (STRATEGY_MENU, preload)
  292. {
  293.     $$ID,
  294.     textMenuProc,
  295.     allEnabled,
  296.     enabled,
  297.     "Strategy",
  298.     {
  299.     //    Filled in on-the-fly
  300.     }
  301. };
  302.  
  303.  
  304. resource 'MENU' (LEVEL_MENU, preload)
  305. {
  306.     $$ID,
  307.     textMenuProc,
  308.     allItems,
  309.     enabled,
  310.     "Thought Level",
  311.     {
  312.         "1 Ply", noIcon, noKey, noMark, plain;
  313.         "2 Plies", noIcon, noKey, noMark, plain;
  314.         "3 Plies", noIcon, noKey, noMark, plain;
  315.         "4 Plies", noIcon, noKey, noMark, plain;
  316.         "5 Plies", noIcon, noKey, noMark, plain;
  317. //        "6 Plies", noIcon, noKey, noMark, plain;
  318. //        "7 Plies", noIcon, noKey, noMark, plain;
  319. //        "8 Plies", noIcon, noKey, noMark, plain;
  320. //        "9 Plies", noIcon, noKey, noMark, plain;
  321.     }
  322. };
  323.  
  324.  
  325.  
  326. //resource 'MENU' (NETTEST_MENU, preload)
  327. //{
  328. //    $$ID,
  329. //    textMenuProc,
  330. //    AllItems,
  331. //    enabled,
  332. //    "NetTest",
  333. //    {
  334. //        "Connect…", noIcon, "N", noMark, plain;
  335. //        "-", noIcon, noKey, noMark, plain;
  336. //        "Send Move…", noIcon, "M", noMark, plain;
  337. //        "Send Game…", noIcon, "G", noMark, plain;
  338. //        "Send Undo…", noIcon, "U", noMark, plain
  339. //    }
  340. //};
  341.  
  342.  
  343. resource 'dctb' (rWindow, "abalone", preload)
  344. {
  345.     {
  346.         wContentColor, 32767, 32767, 32767,
  347.         wFrameColor, 0, 0, 0,
  348.         wTextColor, 0, 0, 0,
  349.         wHiliteColor, 0, 0, 0,
  350.         wTitleBarColor, 65535, 65535, 65535
  351.     }
  352. };
  353.  
  354.  
  355. resource 'DLOG' (rWindow, "abalone", preload)
  356. {
  357.     {40, 10, 335, 344},
  358.     zoomNoGrow,
  359.     invisible,
  360.     goAway,
  361.     0x0,
  362.     1000,
  363.     "Abalone",
  364.     noAutoCenter
  365. };
  366.  
  367.  
  368. resource 'DITL' (1000, "abalone", preload)
  369. {
  370.     {
  371.         {1, 1, 10, 10},
  372.         UserItem {
  373.             disabled
  374.         },
  375.         {1, 11, 10, 20},
  376.         UserItem {
  377.             disabled
  378.         };
  379.         {1, 21, 10, 30},
  380.         UserItem {
  381.             disabled
  382.         };
  383.         {1, 1, 20, 70},
  384.         UserItem {
  385.             disabled
  386.         }
  387.     }
  388. };
  389.  
  390.  
  391. resource 'DLOG' (ABOUT_ABALONE_MENU, "about abalone (large)", purgeable)
  392. {
  393.     {0, 00, 360, 470},
  394.     dBoxProc,
  395.     invisible,
  396.     noGoAway,
  397.     0x0,
  398.     ABOUT_ABALONE_MENU,
  399.     "About",
  400.     alertPositionParentWindow
  401. };
  402.  
  403.  
  404. resource 'dctb' (ABOUT_ABALONE_MENU, "about abalone (large)", purgeable)
  405. {
  406.     {
  407.         wContentColor, 63587, 65535, 65535,
  408.         wFrameColor, 0, 0, 0,
  409.         wTextColor, 0, 0, 0,
  410.         wHiliteColor, 0, 0, 0,
  411.         wTitleBarColor, 32767, 32767, 32767
  412.     }
  413. };
  414.  
  415.  
  416. resource 'DITL' (ABOUT_ABALONE_MENU, "about abalone (large)", purgeable)
  417. {
  418.     {
  419.         {64, 00, 70, 470},
  420.         Picture {
  421.             disabled,
  422.             219
  423.         },
  424.         {330, 300, 354, 460},
  425.         Button {
  426.             enabled,
  427.             "Back to the Board"
  428.         },
  429.         {330, 10, 354, 110},
  430.         Button {
  431.             enabled,
  432.             "Prior item"
  433.         },
  434.         {330, 140, 354, 240},
  435.         Button {
  436.             enabled,
  437.             "Next item"
  438.         },
  439.         {5, 30, 60, 417},
  440.         Picture {
  441.             disabled,
  442.             220
  443.         },
  444.     }
  445. };
  446.  
  447.  
  448. resource 'DLOG' (ABOUT_ABALONE_MENU - 1, "about abalone (small)", purgeable)
  449. {
  450.     {0, 0, 306, 470},
  451.     dBoxProc,
  452.     invisible,
  453.     noGoAway,
  454.     0x0,
  455.     ABOUT_ABALONE_MENU - 1,
  456.     "About",
  457.     alertPositionParentWindow
  458. };
  459.  
  460. resource 'dctb' (ABOUT_ABALONE_MENU - 1, "about abalone (small)", purgeable)
  461. {
  462.     {
  463.         wContentColor, 63587, 65535, 65535,
  464.         wFrameColor, 0, 0, 0,
  465.         wTextColor, 0, 0, 0,
  466.         wHiliteColor, 0, 0, 0,
  467.         wTitleBarColor, 32767, 32767, 32767
  468.     }
  469. };
  470.  
  471. resource 'DITL' (ABOUT_ABALONE_MENU - 1, "about abalone (small)", purgeable)
  472. {
  473.     {
  474.         {9, 0, 25, 0},
  475.         StaticText {
  476.             disabled,
  477.             " "
  478.         },
  479.         {280, 300, 304, 460},
  480.         Button {
  481.             enabled,
  482.             "Back to the Board"
  483.         },
  484.         {280, 10, 304, 110},
  485.         Button {
  486.             enabled,
  487.             "Prior item"
  488.         },
  489.         {280, 140, 304, 240},
  490.         Button {
  491.             enabled,
  492.             "Next item"
  493.         },
  494.         {4, 130, 20, 464},
  495.         StaticText {
  496.             disabled,
  497.             "About Abalone for the Macintosh"
  498.         },
  499.     }
  500. };
  501.  
  502.  
  503. resource 'DITL' (ABOUT_ABALONE_MENU + 1, purgeable)
  504. {
  505.     {
  506.         {10, 10, 260, 460},
  507.         Picture {
  508.             disabled,
  509.             $$ID
  510.         }
  511.     }
  512. };
  513.  
  514.  
  515. resource 'DITL' (ABOUT_ABALONE_MENU + 2, purgeable)
  516. {
  517.     {
  518.         {10, 10, 260, 460},
  519.         Picture {
  520.             disabled,
  521.             $$ID
  522.         }
  523.     }
  524. };
  525.  
  526.  
  527. resource 'DITL' (ABOUT_ABALONE_MENU + 3, purgeable)
  528. {
  529.     {
  530.         {10, 10, 260, 460},
  531.         Picture {
  532.             disabled,
  533.             $$ID
  534.         }
  535.     }
  536. };
  537.  
  538.  
  539. resource 'DITL' (ABOUT_ABALONE_MENU + 10 + 1, purgeable)
  540. {
  541.     {
  542.         {10, 10, 260, 460},
  543.         Picture {
  544.             disabled,
  545.             $$ID
  546.         }
  547.     }
  548. };
  549.  
  550.  
  551. resource 'DITL' (ABOUT_ABALONE_MENU + 10 + 2, purgeable)
  552. {
  553.     {
  554.         {10, 10, 260, 460},
  555.         Picture {
  556.             disabled,
  557.             $$ID
  558.         },
  559.         {150, 100, 182, 132},
  560.         Icon {
  561.             disabled,
  562.             300
  563.         }
  564.     }
  565. };
  566.  
  567.  
  568. resource 'DITL' (ABOUT_ABALONE_MENU + 10 + 3, purgeable)
  569. {
  570.     {
  571.         {10, 10, 260, 460},
  572.         Picture {
  573.             disabled,
  574.             $$ID
  575.         }
  576.     }
  577. };
  578.  
  579.  
  580. resource 'DITL' (ABOUT_ABALONE_MENU + 10 + 4, purgeable)
  581. {
  582.     {
  583.         {10, 10, 260, 460},
  584.         Picture {
  585.             disabled,
  586.             $$ID
  587.         },
  588.     }
  589. };
  590.  
  591.  
  592. resource 'DITL' (ABOUT_ABALONE_MENU + 10 + 5, purgeable)
  593. {
  594.     {
  595.         {10, 10, 260, 460},
  596.         Picture {
  597.             disabled,
  598.             $$ID
  599.         },
  600.         {30, 30, 62, 62},
  601.         Icon {
  602.             disabled,
  603.             400
  604.         }
  605.     }
  606. };
  607.  
  608.  
  609. resource 'DITL' (ABOUT_ABALONE_MENU + 10 + 6, purgeable)
  610. {
  611.     {
  612.         {10, 10, 260, 460},
  613.         Picture {
  614.             disabled,
  615.             $$ID
  616.         },
  617.         {21, 28, 85, 92},
  618.         Picture {
  619.             disabled,
  620.             218
  621.         }
  622.     }
  623. };
  624.  
  625.  
  626. resource 'DITL' (ABOUT_ABALONE_MENU + 10 + 7, purgeable)
  627. {
  628.     {
  629.         {10, 10, 260, 460},
  630.         Picture {
  631.             disabled,
  632.             $$ID
  633.         }
  634.     }
  635. };
  636.  
  637.  
  638. resource 'DLOG' (200, "player settings", purgeable)
  639. {
  640.     {58, 95, 228, 416},
  641.     dBoxProc,
  642.     invisible,
  643.     noGoAway,
  644.     0x0,
  645.     $$ID,
  646.     "",
  647.     alertPositionParentWindow
  648. };
  649.  
  650.  
  651. resource 'DITL' (200, "player settings", purgeable)
  652. {
  653.     {    
  654.         {140, 250, 160, 308},
  655.         Button {
  656.             enabled,
  657.             "OK"
  658.         },
  659.         {140, 170, 160, 228},
  660.         Button {
  661.             enabled,
  662.             "Cancel"
  663.         },
  664.         {15, 15, 80, 80},
  665.         UserItem {
  666.             enabled
  667.         },
  668.         {50, 80, 70, 310},
  669.         Control {
  670.             enabled,
  671.             202
  672.         },
  673.         {80, 70, 100, 310},
  674.         Control {
  675.             enabled,
  676.             200
  677.         },
  678.         {110, 30, 130, 310},
  679.         Control {
  680.             enabled,
  681.             201
  682.         },
  683.         {20, 95, 39, 140},
  684.         StaticText {
  685.             disabled,
  686.             "Name:"
  687.         },
  688.         {20, 143, 35, 306},
  689.         EditText {
  690.             enabled,
  691.             "Gonzo the Great"
  692.         }
  693.     }
  694. };
  695.  
  696.  
  697. resource 'ALRT' (201, "save game?", purgeable)
  698. {
  699.     {80, 80, 146, 456},
  700.     $$ID,
  701.     silentStages,
  702.     alertPositionParentWindow
  703. };
  704.  
  705.  
  706. resource 'DITL' (201, "save game?", purgeable)
  707. {
  708.     {
  709.         {40, 70, 60, 155},
  710.         Button {
  711.             enabled,
  712.             "Don’t Save"
  713.         },
  714.         {40, 290, 60, 360},
  715.         Button {
  716.             enabled,
  717.             "Save"
  718.         },
  719.         {40, 210, 60, 280},
  720.         Button {
  721.             enabled,
  722.             "Cancel"
  723.         },
  724.         {10, 70, 30, 372},
  725.         StaticText {
  726.             disabled,
  727.             "Do you want to save the current game first?"
  728.         }
  729.     }
  730. };
  731.  
  732.  
  733. resource 'ALRT' (202, "end of game", purgeable)
  734. {
  735.     {50, 86, 175, 397},
  736.     $$ID,
  737.     silentStages,
  738.     alertPositionParentWindow
  739. };
  740.  
  741.  
  742. resource 'DITL' (202, "end of game", purgeable)
  743. {
  744.     {
  745.         {95, 210, 115, 293},
  746.         Button {
  747.             enabled,
  748.             "New Game"
  749.         },
  750.         {95, 80, 115, 193},
  751.         Button {
  752.             enabled,
  753.             "Undo last move"
  754.         },
  755.         {95, 10, 115, 65},
  756.         Button {
  757.             enabled,
  758.             "Quit"
  759.         },
  760.         {10, 10, 42, 42},
  761.         Icon {
  762.             disabled,
  763.             0
  764.         },
  765.         {20, 50, 72, 312},
  766.         StaticText {
  767.             disabled,
  768.             "^0 has won this game.\n"
  769.             "^1\n"
  770.             "Feel free to play again."
  771.         }
  772.     }
  773. };
  774.  
  775.  
  776. resource 'DLOG' (203, "select picture", purgeable)
  777. {
  778.     {0, 0, 60, 456},
  779.     dBoxProc,
  780.     invisible,
  781.     noGoAway,
  782.     0x0,
  783.     $$ID,
  784.     "About",
  785.     alertPositionParentWindow
  786. };
  787.  
  788.  
  789. resource 'DITL' (rBackgroundSelect, "select picture", purgeable)
  790. {
  791.     {
  792.         {13, 23, 40, 450},
  793.         StaticText {
  794.             disabled,
  795.             "Select the background by clicking on one of the pictures below"
  796.         }
  797.     }
  798. };
  799.  
  800.  
  801. resource 'DITL' (rBackgroundSelectPict, "pict items", purgeable)
  802. {
  803.     {
  804.         {30, 0*(20+122), 30+106, 0*(20+122)+122},
  805.         Picture {
  806.             enabled,
  807.             200
  808.         },
  809.         {30, 1*(20+122), 30+106, 1*(20+122)+122},
  810.         Picture {
  811.             enabled,
  812.             201
  813.         },
  814.         {30, 2*(20+122), 30+106, 2*(20+122)+122},
  815.         Picture {
  816.             enabled,
  817.             202
  818.         }
  819.     }
  820. };
  821.  
  822.  
  823. resource 'ALRT' (400, "make connection", purgeable)
  824. {
  825.     {40, 40, 165, 455},
  826.     $$ID,
  827.     silentStages,
  828.     alertPositionParentWindow
  829. };
  830.  
  831.  
  832.  
  833. resource 'DITL' (400, "make connection", purgeable)
  834. {
  835.     {    
  836.         {95, 250, 115, 400},
  837.         Button {
  838.             enabled,
  839.             "Establish connection"
  840.         },
  841.         {95, 130, 115, 240},
  842.         Button {
  843.             enabled,
  844.             "Wait for other"
  845.         },
  846.         {95, 10, 115, 120},
  847.         Button {
  848.             enabled,
  849.             "Cancel net play"
  850.         },
  851.         {10, 20, 42, 52},
  852.         Icon {
  853.             disabled,
  854.             $$ID
  855.         },
  856.         {10, 70, 76, 399},
  857.         StaticText {
  858.             disabled,
  859.             "Some of the players are network players, but no program-to-program connection has been established so far.\n"
  860.             "What would you like to do now?"
  861.         }
  862.     }
  863. };
  864.  
  865.  
  866.  
  867. resource 'ALRT' (401, "connection broken", purgeable)
  868. {
  869.     {40, 40, 130, 423},
  870.     $$ID,
  871.     silentStages,
  872.     alertPositionParentWindow
  873. };
  874.  
  875.  
  876.  
  877. resource 'DITL' (401, "connection broken", purgeable)
  878. {
  879.     {    
  880.         {60, 270, 80, 360},
  881.         Button {
  882.             enabled,
  883.             "Take over"
  884.         },
  885.         {60, 170, 80, 260},
  886.         Button {
  887.             enabled,
  888.             "Just Wait"
  889.         },
  890.         {60, 70, 80, 160},
  891.         Button {
  892.             enabled,
  893.             "Quit Game"
  894.         },
  895.         {10, 20, 42, 52},
  896.         Icon {
  897.             disabled,
  898.             $$ID
  899.         },
  900.         {10, 70, 47, 360},
  901.         StaticText {
  902.             disabled,
  903.             "Sorry, your opponent broke the connection.\n"
  904.             "Do you want this Mac to take over for him?"
  905.         }
  906.     }
  907. };
  908.  
  909.  
  910.  
  911. resource 'ALRT' (402, "break connection?", purgeable)
  912. {
  913.     {40, 40, 150, 470},
  914.     $$ID,
  915.     silentStages,
  916.     alertPositionParentWindow
  917. };
  918.  
  919.  
  920.  
  921. resource 'DITL' (402, "break connection?", purgeable)
  922. {
  923.     {    
  924.         {80, 310, 100, 410},
  925.         Button {
  926.             enabled,
  927.             "Quit Game"
  928.         },
  929.         {80, 190, 100, 290},
  930.         Button {
  931.             enabled,
  932.             "I'll behave"
  933.         },
  934.         {80, 70, 100, 170},
  935.         Button {
  936.             enabled,
  937.             "Cancel"
  938.         },
  939.         {10, 20, 42, 52},
  940.         Icon {
  941.             disabled,
  942.             400
  943.         },
  944.         {10, 70, 70, 429},
  945.         StaticText {
  946.             disabled,
  947.             "You are playing with someone else on the network.\n"
  948.             "Do you want to quit the game in progress?  If not,\n"
  949.             "please don't mess up the board and reconnect soon."
  950.         }
  951.     }
  952. };
  953.  
  954.  
  955. resource 'ALRT' (403, "retry connecting?", purgeable)
  956. {
  957.     {40, 40, 182, 456},
  958.     $$ID,
  959.     silentStages,
  960.     alertPositionParentWindow
  961. };
  962.  
  963.  
  964. resource 'DITL' (403, "retry connecting?", purgeable)
  965. {
  966.     {    
  967.         {110, 250, 130, 400},
  968.         Button {
  969.             enabled,
  970.             "Retry connecting"
  971.         },
  972.         {110, 130, 130, 240},
  973.         Button {
  974.             enabled,
  975.             "Wait for other"
  976.         },
  977.         {110, 10, 130, 120},
  978.         Button {
  979.             enabled,
  980.             "Cancel net play"
  981.         },
  982.         {10, 20, 42, 52},
  983.         Icon {
  984.             disabled,
  985.             400
  986.         },
  987.         {10, 70, 96, 419},
  988.         StaticText {
  989.             disabled,
  990.             "You did not establish a valid connection.\n"
  991.             "If you have trouble connecting, then make sure\n"
  992.             "• Program Linking is turned on (Sharing Setup)\n"
  993.             "• Program Linking is allowed (Users & Groups)\n"
  994.             "for all Macs and users involved."
  995.         }
  996.     }
  997. };
  998.  
  999.  
  1000. resource 'ALRT' (404, "quit net game?", purgeable)
  1001. {
  1002.     {80, 80, 146, 456},
  1003.     $$ID,
  1004.     silentStages,
  1005.     alertPositionParentWindow
  1006. };
  1007.  
  1008.  
  1009. resource 'DITL' (404, "quit net game?", purgeable)
  1010. {
  1011.     {
  1012.         {40, 210, 60, 280},
  1013.         Button {
  1014.             enabled,
  1015.             "Cancel"
  1016.         },
  1017.         {40, 290, 60, 360},
  1018.         Button {
  1019.             enabled,
  1020.             "Quit"
  1021.         },
  1022.         {10, 20, 42, 52},
  1023.         Icon {
  1024.             disabled,
  1025.             400
  1026.         },
  1027.         {10, 70, 30, 372},
  1028.         StaticText {
  1029.             disabled,
  1030.             "Are you sure you want to quit this net game?"
  1031.         }
  1032.     }
  1033. };
  1034.  
  1035.  
  1036. resource 'hfdr' (-5696, purgeable)
  1037. {
  1038.     HelpMgrVersion, hmDefaultOptions, 0, 0,
  1039.     {
  1040.         HMSTRResItem
  1041.         {
  1042.             1001
  1043.         }
  1044.     }
  1045. };
  1046.  
  1047.  
  1048. resource 'STR ' (1001, purgeable)
  1049. {
  1050.     "Abalone is a nice strategic board game. This is a freeware Mac implementation of Abalone."
  1051. };
  1052.  
  1053.  
  1054. resource 'CNTL' (PLAYER_MENU)
  1055. {
  1056.     {60, 70, 80, 300},
  1057.     255,
  1058.     visible,
  1059.     60,
  1060.     $$ID,
  1061.     1008,
  1062.     0,
  1063.     "Player:"
  1064. };
  1065.  
  1066.  
  1067. resource 'CNTL' (STRATEGY_MENU)
  1068. {
  1069.     {60, 60, 80, 300},
  1070.     255,
  1071.     visible,
  1072.     70,
  1073.     $$ID,
  1074.     1008,
  1075.     0,
  1076.     "Strategy:"
  1077. };
  1078.  
  1079.  
  1080. resource 'CNTL' (LEVEL_MENU)
  1081. {
  1082.     {60, 20, 80, 300},
  1083.     255,
  1084.     visible,
  1085.     110,
  1086.     $$ID,
  1087.     1008,
  1088.     0,
  1089.     "Thought Level:"
  1090. };
  1091.  
  1092.  
  1093.  
  1094.  
  1095. resource 'STR#' (rPPCStrings, preload) 
  1096. {
  1097.     {
  1098.         "Please select your opponent's Abalone program on the network",
  1099.         "Opponents available",
  1100.     }
  1101. };
  1102.